import random
import time

from crawler.connection import filter_push_redis, redis_shedana, redis_conn

total_list = [
    {'Women':
        [
            {'Shoes': [
                {
                    'Sneakers & Athletic': 'https://www.zappos.com/women-sneakers-athletic-shoes/CK_XARC81wHAAQHiAgMBAhg.zso'},
                {'Sandals': 'https://www.zappos.com/women-sandals/CK_XARC51wHAAQHiAgMBAhg.zso'},
                {'Clogs & Mules': 'https://www.zappos.com/women-clogs-mules/CK_XARC01wHAAQHiAgMBAhg.zso'},
                {'Heels': 'https://www.zappos.com/women-heels/CK_XARC41wHAAQHiAgMBAhg.zso'}, {
                    'Boots & Booties': 'https://www.zappos.com/women-boots/CK_XARCz1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou%2Fdesc&si=3621467%2C4394232%2C4394269%2C5377613%2C5377615%2C5377775%2C5377776%2C5377831%2C5377833%2C5378047%2C5831974%2C5831975%2C5831976%2C5831977%2C5831995%2C5831996%2C5832084%2C5832087%2C5832090%2C5832091%2C5832142%2C5832143&sy=1'},
                {'Slippers': 'https://www.zappos.com/women-slippers/CK_XARC71wHAAQHiAgMBAhg.zso'},
                {'Flats': 'https://www.zappos.com/women-flats/CK_XARC11wHAAQHiAgMBAhg.zso'},
                {'Loafers': 'https://www.zappos.com/women-loafers/CK_XARC21wHAAQHiAgMBAhg.zso'},
                {'Comfort': 'https://www.zappos.com/women-shoes/CK_XAToCthPAAQHiAgMBGAc.zso'}, {
                    'Wide': 'https://www.zappos.com/filters/women-shoes/CK_XAXoS2QTZBNkE2QTZBNkE2QTZBNkEggEVjBiNGI4YjxiQGIoY3OEDlYAFloAFwAEB4gIDARgP.zso'},
                {
                    'Narrow': 'https://www.zappos.com/filters/women-shoes/CK_XAXoO2QTZBNkE2QTZBNkE2QSCARPJ3AOO2wODGIYYk4AFkoAFkYAFwAEB4gIDARgP.zso'},
                {
                    "Women's Adaptive Shoes": 'https://www.zappos.com/women-shoes/CK_XAToCmSLAAQHiAgMBGAc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                {'Shop All Shoes': 'https://www.zappos.com/women-shoes/CK_XAcABAeICAgEY.zso'}]},
            {'Clothing': [
                {'Shirts & Tops': 'https://www.zappos.com/women-shirts-tops/CKvXARDL1wHAAQHiAgMBAhg.zso'},
                {
                    'Sweaters': 'https://www.zappos.com/women-sweaters/CKvXARDQ1wHAAQHiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                {'Dresses': 'https://www.zappos.com/women-dresses/CKvXARDE1wHAAQHiAgMBAhg.zso'},
                {'Shorts': 'https://www.zappos.com/women-shorts/CKvXARDM1wHAAQHiAgMBAhg.zso'},
                {'Jeans & Denim': 'https://www.zappos.com/women-jeans/CKvXARDI1wHAAQHiAgMBAhg.zso'},
                {
                    'Underwear & Intimates': 'https://www.zappos.com/women-underwear-intimates/CKvXARDG1wHAAQHiAgMBAhg.zso'},
                {'Coats & Outerwear': 'https://www.zappos.com/women-coats-outerwear/CKvXARDH1wHAAQHiAgMBAhg.zso'},
                {'Socks': 'https://www.zappos.com/women-socks/CKvXARDO1wHAAQHiAgMBAhg.zso'},
                {'Sleepwear': 'https://www.zappos.com/women-sleepwear/CKvXARDJ1wHAAQHiAgMBAhg.zso'}, {
                    'Activewear': 'https://www.zappos.com/filters/activewear-women-clothing/CKvXAcABAeICAgEY.zso?t=activewear&s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                {'Plus Size': 'https://www.zappos.com/women-clothing/CKvXAToCuRPAAQHiAgMBGAc.zso'},
                {'Petite': 'https://www.zappos.com/women-clothing/CKvXAToCuhPAAQHiAgMBGAc.zso'},
                {'Shop All Clothing': 'https://www.zappos.com/women-clothing/CKvXAcABAeICAgEY.zso'}]},
            {
            'Accessories & More': [{'Bags & Handbags': 'https://www.zappos.com/c/bags'},
                                   {
                                       'Backpacks': 'https://www.zappos.com/women-backpacks/COjWARCQ1wHAAQHiAgMBAhg.zso'},
                                   {
                                       'Belt Bags': 'https://www.zappos.com/women-lumbar-packs/COjWARCl1wHAAQHiAgMBAhg.zso'},
                                   {
                                       'Hair': 'https://www.zappos.com/women-hair-accessories/COfWARCI1wHAAQHiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                                   {
                                       'Sunglasses': 'https://www.zappos.com/women-sunglasses/CKzXARCq2QHAAQHiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                                   {'Statement Earrings': 'https://www.zappos.com/statement-earrings'},
                                   {'Face Masks': 'https://www.zappos.com/face-masks'}, {
                                       'Tech Accessories': 'https://www.zappos.com/electronics/CKjaAeICAQE.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
                                   {
                                       'Scarves': 'https://www.zappos.com/women-scarves/COfWARCK1wHAAQHiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                                   {
                                       'Hats': 'https://www.zappos.com/women-hats/COfWARCJ1wHAAQHiAgMBAhg.zso?s=bestForYou/desc'},
                                   {
                                       'Shop All Accessories': 'https://www.zappos.com/c/jewelry-accessories'}]},
            {'Gift Cards': [{
                'Sneakers & Athletic': 'https://www.zappos.com/women-sneakers-athletic-shoes/CK_XARC81wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Heels': 'https://www.zappos.com/women-heels/CK_XARC41wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Sandals': 'https://www.zappos.com/women-sandals/CK_XARC51wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Slippers': 'https://www.zappos.com/women-slippers/CK_XARC71wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Boots': 'https://www.zappos.com/women-boots/CK_XARCz1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Shirts and Tops': 'https://www.zappos.com/women-shirts-tops/CKvXARDL1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Dresses': 'https://www.zappos.com/women-dresses/CKvXARDE1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Swim': 'https://www.zappos.com/women-swimwear/CKvXARDR1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Denim': 'https://www.zappos.com/women-jeans/CKvXARDI1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Sweaters': 'https://www.zappos.com/women-sweaters/CKvXARDQ1wHAAQHgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
                {
                    'Shop All Sale': 'https://www.zappos.com/women/wAEB4AEB4gICGBw.zso?s=recentSalesStyle/desc/'}]},
            {'Featured': [{'The Style Room': 'https://www.zappos.com/c/the-style-room-women'},
                          {'Zappos Preloved': 'https://www.zappos.com/c/zappos-preloved'}, {
                              'Female Founded': 'https://www.zappos.com/filters/null/WqwBqyaWI7Mq0x_7C8UF0ymkGYUqgiaTGqop_R6QKZER9iT8Ev4dqyy2E4kixiqxGP0o1innItMjkRbsKYkp_ibTMowr9yuOCNUV-SeLFdMimAi_FYEqky2EG9EpuSnCIb0l7g6KKoQjkSKpFOspmyDkIM4WnRbXKKYl5SnVKccmpCLeJaUqtRjwGIcbtSfGKJUqgCiYKrMa0SXEE8km_hWjKLAy_yiJIfgb6inIKOICAQs.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                          {'Influencer Favorites': 'https://www.zappos.com/c/zappos-haul'},
                          {'Wedding Shop': 'https://www.zappos.com/c/weddings'}, {
                              'Winter Clearance': 'https://www.zappos.com/women/wAEB4AEB4gIDMBgcggMDjOkB.zso?s=recentSalesStyle%2Fdesc%2F&pf_rd_r=FCD16BFYK9RKTS2MRVJQ&pf_rd_p=5fb0da59-21b7-4996-83c7-439eaef5bd89'},
                          {'Top 5 Running Shoes': 'https://www.zappos.com/c/top-5-running-shoes'}, {
                              'Awe Inspired': 'https://www.zappos.com/awe-inspired/UgKyM-ICAQo.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                          {
                              'Crocs': 'https://www.zappos.com/crocs-women/WgKDB8ABAeICAgsY.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                          {
                              'Fairfax and Favor': 'https://www.zappos.com/fairfax-and-favor/.zso?t=fairfax%20and%20favor&s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                          {
                              'Wildfox': 'https://www.zappos.com/filters/wildfox-women/wAEB4gIBGA.zso?t=wildfox&s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                          {
                              'girlfriend collective': 'https://www.zappos.com/girlfriend-collective/UgK6M-ICAQo.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'}]}]},
    {'Men': [
        {'Shoes': [{
        'Sneakers & Athletic': 'https://www.zappos.com/men-sneakers-athletic-shoes/CK_XARC81wHAAQLiAgMBAhg.zso?s=bestForYou%2Fdesc&si=5589155&sy=1'},
        {
            'Slippers': 'https://www.zappos.com/men-slippers/CK_XARC71wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Running Shoes': 'https://www.zappos.com/men-running-shoes/CK_XARC81wEY0O4BwAEC4gIEAQIDGA.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Oxfords': 'https://www.zappos.com/men-oxfords/CK_XARC31wHAAQLiAgMBAhg.zso?s=bestForYou%2Fdesc'},
        {
            'Loafers': 'https://www.zappos.com/men-loafers/CK_XARC21wHAAQLiAgMBAhg.zso?s=bestForYou/desc'},
        {
            'Clogs': 'https://www.zappos.com/men-clogs/CK_XARC01wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Boots': 'https://www.zappos.com/men-boots/CK_XARCz1wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou%2Fdesc&si=5370348%2C5370351%2C5370727%2C5816018%2C5816019%2C5816031%2C5816032%2C5817595%2C5817596%2C5817599&sy=1'},
        {'Wide': 'https://www.zappos.com/mens-wide-shoes'}, {
            "Men's Adaptive Shoes": 'https://www.zappos.com/men-shoes/CK_XAToCmSLAAQLiAgMBGAc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {'Shop All Shoes': 'https://www.zappos.com/men-shoes/CK_XAcABAuICAgEY.zso'}]},
        {
        'Clothing': [{
            'Shirts & Tops': 'https://www.zappos.com/men-shirts-tops/CKvXARDL1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Shorts': 'https://www.zappos.com/men-shorts/CKvXARDM1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Coats & Outerwear': 'https://www.zappos.com/men-coats-outerwear/CKvXARDH1wHAAQLiAgMBAhg.zso?s=recentSalesStyle/desc/'},
            {
                'Pants': 'https://www.zappos.com/men-pants/CKvXARDK1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Jeans': 'https://www.zappos.com/men-jeans/CKvXARDI1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Underwear': 'https://www.zappos.com/men-underwear/CKvXARDT1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Activewear': 'https://www.zappos.com/filters/activewear-men-clothing/CKvXAcABAuICAgEY.zso?t=activewear&s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Hoodies & Sweatshirts': 'https://www.zappos.com/men-hoodies-sweatshirts/CKvXARDF1wHAAQLiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Big & Tall': 'https://www.zappos.com/men-clothing/CKvXAToCuxPAAQLiAgMBGAc.zso'},
            {
                'Shop All Clothing': 'https://www.zappos.com/men-clothing/CKvXAcABAuICAgEY.zso'}]},
        {'Accessories & More': [{'Bags': 'https://www.zappos.com/men-bags/COjWAcABAuICAgEY.zso'},
                                {'Hats': 'https://www.zappos.com/men-hats/COfWARCJ1wHAAQLiAgMBAhg.zso'},
                                {
                                    'Sunglasses & Eyewear': 'https://www.zappos.com/men-eyewear/CKzXAcABAuICAgEY.zso'},
                                {
                                    'Belts': 'https://www.zappos.com/men-belts/COfWARCG1wHAAQLiAgMBAhg.zso'},
                                {'Watches': 'https://www.zappos.com/men-watches/CLHXAcABAuICAgEY.zso'},
                                {'Gloves': 'https://www.zappos.com/mens-gloves'}, {
                                    'Tech Accessories': 'https://www.zappos.com/electronics/CKjaAeICAQE.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
                                {
                                    'Wallets': 'https://www.zappos.com/men-wallets/COjWARCW1wHAAQLiAgMBAhg.zso'},
                                {
                                    'Shop All Accessories': 'https://www.zappos.com/men-accessories/COfWAcABAuICAgEY.zso'}]},
        {'Gift Cards': [{
            'E-Gift Cards': 'https://www.zappos.com/c/select-your-e-gift-card?pf_rd_r=C412BFA81099476E88E9&pf_rd_p=9cfbf337-614e-4aa0-9ef7-f07e3671a697'},
            {
                'Mail Gift Cards': 'https://www.zappos.com/c/zappos-mail-giftcards?pf_rd_r=591D6573C25B4F169B5E&pf_rd_p=9cfbf337-614e-4aa0-9ef7-f07e3671a697'},
            {
                'Sneakers & Athletic': 'https://www.zappos.com/men-sneakers-athletic-shoes/CK_XARC81wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
            {
                'Boots': 'https://www.zappos.com/men-boots/CK_XARCz1wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
            {
                'Shirts and Tops': 'https://www.zappos.com/men-shirts-tops/CKvXARDL1wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
            {
                'Denim': 'https://www.zappos.com/men-jeans/CKvXARDI1wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
            {
                'Shorts': 'https://www.zappos.com/men-shorts/CKvXARDM1wHAAQLgAQHiAgQBAhgc.zso?s=bestForYou/desc'},
            {
                'Sandals': 'https://www.zappos.com/men-sandals/CK_XARC51wHAAQLgAQHiAgQBAhgc.zso?s=recentSalesStyle/desc/'},
            {
                'Shop All Sale': 'https://www.zappos.com/men/wAEC4AEB4gICGBw.zso?s=recentSalesStyle/desc/'}]},
        {'Featured': [{'The Style Room': 'https://www.zappos.com/c/the-style-room-men'}, {
            'Big and Tall': 'https://www.zappos.com/men-clothing/CKvXAToCuxPAAQLiAgMBGAc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                      {'UFC Shop': 'https://www.zappos.com/e/ufc'}, {
                          "Men's Golf Shoes & Clothing": 'https://www.zappos.com/mens-golf/.zso?t=mens%20golf&s=recentSalesStyle/desc/'},
                      {'Top 5 Running Shoes': 'https://www.zappos.com/c/top-5-running-shoes'}, {
                          'Carhartt': 'https://www.zappos.com/carhartt/WgLfDeICAQs.zso?s=recentSalesStyle/desc/'},
                      {
                          'Hoka': 'https://www.zappos.com/hoka-men-shoes/CK_XAVoClxrAAQLiAgMBCxg.zso?s=recentSalesStyle/desc/'},
                      {
                          'Timberland Pro': 'https://www.zappos.com/timberland-pro-men/WgKTBsABAuICAgsY.zso?s=recentSalesStyle/desc/'},
                      {
                          'Hey Dude': 'https://www.zappos.com/filters/hey-dude-men-shoes/CK_XAcABAuICAgEY.zso?t=hey%20dude&s=recentSalesStyle/desc/'},
                      {
                          'SOREL': 'https://www.zappos.com/sorel-men-shoes/CK_XAVoC4QLAAQLiAgMBCxg.zso?s=recentSalesStyle/desc/'}]}]
    },
    {'Kids': [
        {'Kids': [{
        'Sneakers': 'https://www.zappos.com/sneakers-athletic-shoes/CK_XARC81wE6AtUe4gIDAQIH.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
        {
            'Boots': 'https://www.zappos.com/boots/CK_XARCz1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Coats & Outerwear': 'https://www.zappos.com/coats-outerwear/CKvXARDH1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Shirts & Tops': 'https://www.zappos.com/shirts-tops/CKvXARDL1wE6AtUe4gIDAQIH.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
        {
            'Hoodies & Sweatshirts': 'https://www.zappos.com/hoodies-sweatshirts/CKvXARDF1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Clogs': 'https://www.zappos.com/clogs/CK_XARC01wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Jeans & Denim': 'https://www.zappos.com/clothing/CKvXAToE6g_VHuICAwEHBw.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Flats': 'https://www.zappos.com/flats/CK_XARC11wE6AtUe4gIDAQIH.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
        {
            'Pants': 'https://www.zappos.com/pants/CKvXARDK1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Underwear': 'https://www.zappos.com/underwear-intimates/CKvXARDG1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Pajamas': 'https://www.zappos.com/sleepwear/CKvXARDJ1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Sandals': 'https://www.zappos.com/sandals/CK_XARC51wE6AtUe4gIDAQIH.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
        {
            'Single Shoes': 'https://www.zappos.com/shoes/CK_XAToEjyzVHuICAwEHBw.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
        {
            'Kids’ Adaptive Shoes': 'https://www.zappos.com/shoes/CK_XAToE1i-ZIuICAwEHBw.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F&si=5690784%2C5747811%2C6053850%2C4812966%2C5690783%2C5761899%2C5360235&sy=1'},
        {
            'Shop All Kids': 'https://www.zappos.com/null/OgLVHuICAQc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'}]},
        {'Girls': [{
            'Sneakers': 'https://www.zappos.com/girls-sneakers-athletic-shoes/CK_XARC81wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Boots': 'https://www.zappos.com/girls-boots/CK_XARCz1wHAAQPiAgMBAhg.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
            {
                'Coats & Outerwear': 'https://www.zappos.com/girls-coats-outerwear/CKvXARDH1wHAAQPiAgMBAhg.zso?s=recentSalesStyle/desc/'},
            {
                'Flats': 'https://www.zappos.com/girls-flats/CK_XARC11wHAAQPiAgMBAhg.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F&si=5428965&sy=1'},
            {
                'Dresses': 'https://www.zappos.com/girls-dresses/CKvXARDE1wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Shirts & Tops': 'https://www.zappos.com/girls-shirts-tops/CKvXARDL1wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Pants': 'https://www.zappos.com/girls-pants/CKvXARDK1wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Hoodies & Sweatshirts': 'https://www.zappos.com/girls-hoodies-sweatshirts/CKvXARDF1wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Clogs': 'https://www.zappos.com/girls-clogs/CK_XARC01wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Underwear': 'https://www.zappos.com/girls-underwear-intimates/CKvXARDG1wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Pajamas': 'https://www.zappos.com/girls-sleepwear/CKvXARDJ1wHAAQPiAgMBAhg.zso?s=recentSalesStyle/desc/'},
            {
                'Sandals': 'https://www.zappos.com/girls-sandals/CK_XARC51wHAAQPiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                "Girls' Adaptive Shoes": 'https://www.zappos.com/girls-shoes/CK_XAToE1i-ZIsABA-ICBAEYBwc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/&si=4812966,4812965,5493840,5761921,5690783,5360235&sy=1'},
            {
                'Shop All Girls': 'https://www.zappos.com/girls/wAED4gIBGA.zso?s=recentSalesStyle%2Fdesc%2F'}]},
        {'Boys': [{
            'Sneakers': 'https://www.zappos.com/boys-sneakers-athletic-shoes/CK_XARC81wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Boots': 'https://www.zappos.com/boys-boots/CK_XARCz1wHAAQTiAgMBAhg.zso?s=bestForYou%2Fdesc'},
            {
                'Shirts & Tops': 'https://www.zappos.com/boys-shirts-tops/CKvXARDL1wHAAQTiAgMBAhg.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
            {
                'Coats & Outerwear': 'https://www.zappos.com/boys-coats-outerwear/CKvXARDH1wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Hoodies & Sweatshirts': 'https://www.zappos.com/boys-hoodies-sweatshirts/CKvXARDF1wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Dress Shoes': 'https://www.zappos.com/boys-shoes/CK_XAToCmw3AAQTiAgMBGAc.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
            {
                'Jeans & Denim': 'https://www.zappos.com/boys-clothing/CKvXAToC6g_AAQTiAgMBGAc.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Clogs': 'https://www.zappos.com/boys-clogs/CK_XARC01wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Underwear': 'https://www.zappos.com/boys-underwear/CKvXARDT1wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Pajamas': 'https://www.zappos.com/boys-sleepwear/CKvXARDJ1wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Sandals': 'https://www.zappos.com/boys-sandals/CK_XARC51wHAAQTiAgMBAhg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                "Boys' Adaptive Shoes": 'https://www.zappos.com/boys-shoes/CK_XAToE1i-ZIsABBOICBAEYBwc.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F&si=5690784%2C5747811%2C6053850%2C5690783%2C4812966%2C5761899%2C5360235&sy=1'},
            {
                'Shop All Boys': 'https://www.zappos.com/boys/wAEE4gIBGA.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'}]},
        {'Accessories & More': [{
            'Backpacks': 'https://www.zappos.com/bags/COjWAToC1R7iAgIBBw.zso?s=recentSalesStyle%2Fdesc%2F'},
            {
                'Gloves': 'https://www.zappos.com/gloves/COfWARCH1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Hats': 'https://www.zappos.com/hats/COfWARCJ1wE6AtUe4gIDAQIH.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
            {
                'Toys & Games': 'https://www.zappos.com/toys-and-games/CKjYAeICAjABggMD5-EB.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F'},
            {
                'Sneakers': 'https://www.zappos.com/sneakers-athletic-shoes/CK_XARC81wE6AtUe4AEB4gIEAQIHHA.zso?s=bestForYou/desc'},
            {
                'Boots': 'https://www.zappos.com/boots/CK_XARCz1wE6AtUe4AEB4gIEAQIHHA.zso?s=bestForYou/desc'},
            {
                'Coats & Outerwear': 'https://www.zappos.com/coats-outerwear/CKvXARDH1wE6AtUe4AEB4gIEAQIHHA.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'}]},
        {'Featured': [{"Kids' Athletic": 'https://www.zappos.com/kids-athletic'}, {
            'Character Shop (Disney & More)': 'https://www.zappos.com/c/character-favorites'},
                      {'Juniors & Teen': 'https://www.zappos.com/juniors'}, {
                          'Crocs Kids': 'https://www.zappos.com/crocs-kids-shoes/CK_XAVoCzwriAgIBCw.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                      {
                          'Vans Kids': 'https://www.zappos.com/vans-kids/UgKrAVoC2gPiAgILCg.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                      {
                          'Polo Ralph Lauren Kids': 'https://www.zappos.com/polo-ralph-lauren-kids/WgLBBOICAQs.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/&si=6206881,6207804,6207951,6206887,6207745,6207799,6207704,6207907,6207702,6207855,6207839,6207709,6208783,6208808,6208784,6208022,6208776,6208773,6208000,6208772,6206877,6209894,6208749,6209890&sy=1'},
                      {
                          'New Balance Kids': 'https://www.zappos.com/new-balance-kids/WgLdA-ICAQs.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                      {
                          'SKECHERS KIDS': 'https://www.zappos.com/skechers-kids-shoes/CK_XAVoC2APiAgIBCw.zso?s=isNew/desc/goLiveDate/desc/recentSalesStyle/desc/'},
                      {
                          'UGG Kids': 'https://www.zappos.com/ugg-kids/WgLzA-ICAQs.zso?s=isNew%2Fdesc%2FgoLiveDate%2Fdesc%2FrecentSalesStyle%2Fdesc%2F&si=5825812%2C5824322%2C5824238&sy=1'}]}]}
]

for total in total_list:
    for k, v in total.items():
        sex = k
        for c in v:
            for d, f in c.items():
                for g in f:
                    for h, i in g.items():
                        category = d + '>>' + h
                        url = i
                        task = {
                            "jobId": random.randint(1, 99999),
                            'url': url,
                            'category': category,
                            'sex': sex,
                            'domain': 'ZAPPOS'.upper(),
                            'filename': 'main',
                            'types': 'electronic_business',
                            "scheduleTime": int(time.time() * 1000),
                            "triggerChannel": 'SONIC_SPIDER',
                        }

                        result = filter_push_redis(redis_conn,
                                                   f'{task["types"]}_{task["filename"]}_{task["domain"]}',
                                                   task)
                        # result = filter_push_redis(redis_shedana,
                        #                            f'{task["types"]}_{task["filename"]}_{task["domain"]}',
                        #                            task)
                        print(result)
                        # input()

